<?php /* Smarty version Smarty-3.0.7, created on 2012-01-25 21:25:29
         compiled from "./view/action/message/read_message.tpl" */ ?>
<?php /*%%SmartyHeaderCode:189174e3427b94b8c64-13094691%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '40232513543fcd06a5dbe5409be9e99aadd37cd1' => 
    array (
      0 => './view/action/message/read_message.tpl',
      1 => 1313237286,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '189174e3427b94b8c64-13094691',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
    <div class='nag'><span>Centrum zarządzania wiadomościami - czytanie wiadomości</span></div>
    
    <?php if (isset($_smarty_tpl->getVariable('row',null,true,false)->value)){?>
    <p style='margin: 20px;'>
    	Wiadomość wysłana przez: <?php echo $_smarty_tpl->getVariable('row')->value['message_from'];?>
<br />
   	 	Data wysłania wiadomości: <?php echo $_smarty_tpl->getVariable('row')->value['message_send_date'];?>
<br />
    	Temat: <?php echo $_smarty_tpl->getVariable('row')->value['message_title'];?>
<br />
   		Treść: <br />
    	<p style='margin: 30px;'><?php echo $_smarty_tpl->getVariable('row')->value['message_text'];?>
</p>
    	<button style='width: 92px; height: 22px; margin: 20px;'>Odpowiedz</button>
        
    	<form style='display: none; margin: 20px;' action="http://<?php echo $_smarty_tpl->getVariable('page')->value;?>
/message/new_message" method='POST' >
    		<table>
              	<tr>
                	<td>Odbiorca:</td>
                    <td><input type='text' name='inputString' size="60" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" value='<?php echo $_smarty_tpl->getVariable('row')->value['message_from'];?>
'><br>
			
						<div class="suggestionsBox" id="suggestions" style="display: none;">
						<img src="<?php echo $_smarty_tpl->getVariable('page')->value;?>
images/upArrow.png" style="position: relative; top: -10px; left: 30px;" alt="upArrow" />
						<div class="suggestionList" id="autoSuggestionsList">
						</div></div></td>
            
          		</tr>
            	<tr>
                	<td>Tytuł wiadomosci:</td>
                    <td><input type='text' name='message_title' value='Re: <?php echo $_smarty_tpl->getVariable('row')->value['message_title'];?>
'/></td>
                </tr>
                <tr>
                	<td>Treść wiadomości:</td>
                    <td><textarea name="message_text" cols="60" rows="10"></textarea></td>                	
                </tr>
            </table>
            
            <input type='submit' name='newMessage' value='Wyślij' />
    
    	</form>
        
        <script>
			$("button").click(function () {
			$("form").toggle("slow");
			});
		</script>
       </p>
    <?php }?>
    
    <?php if (isset($_smarty_tpl->getVariable('actionMessage',null,true,false)->value)){?>
    	<?php echo $_smarty_tpl->getVariable('actionMessage')->value;?>

	<?php }?>